package com.wmx;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;

/**
 * 服务启动类
 * * @EnableCaching ：开启缓存支持，Spring boot 就会自动配置缓存基础设施。
 *
 * @author wangMaoXiong
 */
@SpringBootApplication
@EnableCaching
public class H2SmilApplication {

    public static void main(String[] args) {
        // 在main方法里插入下面的代码以解决es的netty冲突问题
        // Caused by: java.lang.IllegalStateException: availableProcessors is already set to [2], rejecting [2]
        System.setProperty("es.set.netty.runtime.available.processors", "false");

        SpringApplication.run(H2SmilApplication.class, args);
    }

}
